package com.beauty.dressing.common.bean;

import android.text.TextUtils;

import java.util.List;

/**
 * Created by aaa on 2018/5/18.
 */

public class SaleItemDetail extends BaseBean {
    public long sales_id;
    public String sales_name; //租赁商品名称
    public String subtitle;//限时抢购，优惠内容
    public String price;//现价
    public String original;//原价
    public String member;//会员价
    public ShopAttribute attribute; //属性
    public String image;//主图
    public List<String> img;//附图，数组
    public int inventory;//库存

    public float getPrice(){
        if (!TextUtils.isEmpty(price)){
            return Float.parseFloat(price);
        }
        return 0;
    }

//    data":{"sales_id":3,"sales_name":"销售商品3","subtitle":"抢购,抢购.限时抢购,亲 我在这里等你","price":"168.00","original":"198.00","member":"129.00","attribute":{"颜色":"黑色","品牌":"奥迪"},"image":"admin\/1525925204.jpg","img":["admin\/1525925204.jpg","admin\/1525925204.jpg","admin\/1525925204.jpg","admin\/1525925204.jpg"],"inventory":100}
}
